from django.urls import path
from rest_framework import routers
from django.views.static import serve
from .views import ProfileViewSet
from .models import app_static_path

router = routers.SimpleRouter()
router.register("profile", ProfileViewSet, basename='profile')

urlpatterns = [
    path("static/<path:path>",serve,{"document_root":app_static_path}),
]
urlpatterns += router.urls
